<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" href="/style/css/write.min.css">

    <script type="text/javascript">
        window.editorLoaded = false;
        const WEB_TYPE = "write-mail";
        var iframe_template = "#MACRO_ORIGIN_CONTENT#";
        function iframe_load($iframe){
            window.editorLoaded = true;
        }
    </script>
    <script type="text/javascript" src="../../lib/js/jquery-v2.2.1.min.js"></script>
</head>
<body>
    <script>
        $mm = jQuery.noConflict();
    </script>
    <iframe id="editor" height="0" frameborder=no  sandbox="allow-scripts allow-same-origin" src="writemail_content.html" onload = "iframe_load(this);">
    </iframe>

<script type="text/javascript" src="../../lib/js/handlebars.runtime-v3.0.3.min.js"></script>
    <script type="text/javascript"  src="../../lib/js/ueditor.config.js"></script>
    <!--<script type="text/javascript"  src="../../js/write/ueditor.all.js"></script>-->
    <script type="text/javascript"  src="../../lib/js/ueditor.all.min.js"> </script>
    <script type="text/javascript"  src="../../lib/js/lang/zh-cn/zh-cn.js"></script>


<script src="/js/common.js"></script>

<script src="../../lib/js/doT.min.js" type="text/javascript"></script>
<script src="../../lib/js/r.min.js" type="text/javascript"></script>

<script src="/js/write/writeTmpl.js"></script>
<script type="text/javascript">
    setTimeout(function(){ 
        window.ue = new UE.Editor();
        ue._setup(document.getElementById("editor").contentWindow.document);
    },100)
    Handlebars.registerPartial("signature", Writer.tmpl.signature);
    Handlebars.registerPartial("defaultSignature", Writer.tmpl.defaultSignature);
    Handlebars.registerPartial("attachDeleteBtn", Writer.tmpl.attachDeleteBtn);
    Handlebars.registerPartial("mailContent", Writer.tmpl.mailContent);
	Handlebars.registerPartial("loading", Writer.tmpl.loading);

    const WRITEMAIL_INITIALCONFIG = #MACRO_MAIL_META#;
    const DEFAULT_FONT_FAMILY = #MACRO_DEFAULT_FONT_FAMILY#;
    const DEFAULT_ORIGIN_FONT_FAMILY = #MACRO_ORG_MAIL_DEFAULT_FONT_FAMILY#;
    const DEFAULT_FONT_SIZE= #MACRO_DEFAULT_FONT_SIZE#;
    G.writeMailDataAccess = new MailDataAccess(WRITEMAIL_INITIALCONFIG);
    G.inlineAttachmentMap = new Map();
</script>
<script type="text/javascript" src="../../js/write/writeMail.js"></script>
</body>
</html>